0a1,4
> # Original file https://github.com/ray-project/ray/blob/ray-2.9.3/python/ray/_private/log_monitor.py
> # Fixed the problem for progress bar, as the latest version does not preserve \r for progress bar.
> # We change the newline handling back to https://github.com/ray-project/ray/blob/ray-1.10.0/python/ray/_private/log_monitor.py#L299-L300
> 
377c381,382
<                     next_line = next_line.rstrip("\r\n")
---
>                     if next_line.endswith("\n"):
>                         next_line = next_line[:-1]
